<!-- include tpl=head_lay -->
<div class="layui-card">
	<div class="layui-card-header" phpok-id="JS_TITLE">
		{lang项目}
		<!-- if $popedom.set -->
		<div class="layui-btn-group fr" phpok-id="JS_SET">
			<input type="button" value="{lang添加项目}" onclick="$.win('{lang添加项目}','{url ctrl=project func=set/}')" class="layui-btn layui-btn-sm" />
			<!-- if $session.adm_develop -->
			<input type="button" onclick="$.admin_project.import_xml()" value="{lang项目导入}" class="layui-btn layui-btn-sm" />
			<input type="button" value="{lang项目组}" onclick="$.win('{lang项目组管理}','{url ctrl=project func=group/}')" class="layui-btn layui-btn-sm" />
			<!-- /if -->
		</div>
		<!-- /if -->
	</div>
	<div class="layui-card-body" phpok-id="JS_BODY">
		<table class="layui-table" lay-size="sm">
		<thead>
		<tr>
			<!-- if $popedom.set -->
			<th width="30px"></th>
			<!-- /if -->
			<th width="50px" class="center">ID</th>
			<th width="30px">&nbsp;</th>
			<th>{lang项目名称}</th>
			<th>{lang标识串}</th>
			
			<th>{langApi接口}</th>
			<th>{lang前台}</th>
			<th>{lang模块}</th>
			<th width="65" class="center">{lang排序}</th>
			<!-- if $popedom.set -->
			<th width="245px">&nbsp;</th>
			<!-- /if -->
		</tr>
		</thead>
		<!-- loop from=$rslist key=$key value=$value id=$tmpid -->
		<tr id="project_{$value.id}">
			<!-- if $popedom.set -->
			<td class="center"><input type="checkbox" value="{$value.id}" data-name="id" id="id_{$value.id}" data-title="{$value.title}" /></td>
			<!-- /if -->
			<td class="center gray" height="24px">{$value.id}</td>
			<td class="center"><span class="status{$value.status}" id="status_{$value.id}" {if $popedom.set}onclick="$.admin_project.set_status({$value.id})"{else} style="cursor:default"{/if} value="{$value.status}"></span></td>
			<td><label for="id_{$value.id}">{$value.space}<span style="{$value.style}">{$value.title}</span>
				<!-- if $value.nick_title --><span class="gray"> ({$value.nick_title})</span><!-- /if -->
				<!-- if $value.admin_group_title --><span class="gray"> ({$value.admin_group_title})</span><!-- /if -->
				<!-- if $value.hidden --><span class="red i">{lang（隐藏）}</span><!-- /if -->
				</label></td>
			<td>{$value.identifier}</td>
			<td><!-- if $value.is_api -->{lang启用}<!-- else --><span class="gray">{lang禁用}</span><!-- /if --></td>
			<td><!-- if $value.is_front -->{lang启用}<!-- else --><span class="gray">{lang禁用}</span><!-- /if --></td>
			<td>
				<!-- if $value.project_module_title -->
				<a href="javascript:$.win('{lang模块管理}','{url ctrl=module highlight=$value.module/}');void(0)" class="gray">{$value.project_module_title}</a>
				<!-- else -->
				-
				<!-- /if -->
			</td>
			<td><div class="gray i hand center" title="{lang点击调整排序}" name="taxis" data="{$value.id}">{$value.taxis}</div></td>
			<!-- if $popedom.set -->
			<td>
				<div class="layui-btn-group">
					<input type="button" value="{lang编辑}" onclick="$.win('{lang编辑}_#{$value.id}','{url ctrl=project func=set id=$value.id/}')" class="layui-btn layui-btn-sm" />
					<input type="button" value="{lang删除}" onclick="$.admin_project.del('{$value.id}')" class="layui-btn layui-btn-sm layui-btn-danger" />
					<input type="button" value="{lang扩展字段}" onclick="$.admin_project.extinfo('{$value.id}')" class="layui-btn layui-btn-sm" />
					<!-- if !$value.parent_id -->
					<input type="button" value="{lang添加子项}" class="layui-btn layui-btn-sm" onclick="$.win('{lang添加子项}_#{$value.id}','{url ctrl=project func=set pid=$value.id/}')" />
					<!-- /if -->
				</div>
			</td>
			<!-- /if -->
		</tr>
		<!-- /loop -->
		</table>
		<!-- if $popedom.set -->
		<div phpok-id="JS_BATCH">
		<ul class="layout">
			<li>
				<div class="layui-btn-group">
					<input type="button" value="{lang全选}" class="layui-btn layui-btn-sm" onclick="$.checkbox.all()" />
					<input type="button" value="{lang全不选}" class="layui-btn layui-btn-sm" onclick="$.checkbox.none()" />
					<input type="button" value="{lang反选}" class="layui-btn layui-btn-sm" onclick="$.checkbox.anti()" />
				</div>
			</li>
			<li>
				<select id="action_type">
					<optgroup label="后台分组">
						<option value="">{lang请选择…}</option>
						<option value="-">{lang - 取消分组 - }</option>
						<!-- loop from=groups key=$key value=$value id=$tmpid -->
						<option value="{$key}">{$value}</option>
						<!-- /loop -->
					</optgroup>
					<optgroup label="禁用或启用">
						<option value="set_lock:0">{lang禁用}</option>
						<option value="set_lock:1">{lang启用}</option>
					</optgroup>
					<optgroup label="显示或隐藏">
						<option value="set_hidden:0">{lang显示}</option>
						<option value="set_hidden:1">{lang隐藏}</option>
					</optgroup>
					<optgroup label="其他操作">
						<option value="clear">{lang清空}</option>
						<option value="copy">{lang复制}</option>
						<option value="export">{lang导出}</option>
					</optgroup>
				</select>
			</li>
			<li>
				<input type="button" value="{lang确定}" onclick="$.admin_project.set_submit()" class="layui-btn layui-btn-sm" />
			</li>
		</ul>
		</div>
		<!-- /if -->
	</div>
</div>

<!-- include tpl=foot_lay -->